package com.hxd.mall.injector.modules

import com.hxd.mall.injector.scope.ActivityScope
import com.hxd.mall.module.usercenter.nick.INickPresenter
import com.hxd.mall.module.usercenter.nick.INickView
import com.hxd.mall.module.usercenter.nick.NickActivity
import com.hxd.mall.module.usercenter.nick.NickPresenter
import dagger.Binds
import dagger.Module

/**
 * @author zhaoyong
 * @description:
 * @date :2019-10-15 15:29
 */
@Module
abstract class NickModule {
    @Binds
    internal abstract fun bindView(activity: NickActivity): INickView

    @ActivityScope
    @Binds
    abstract fun provideMainPresenter(presenter: NickPresenter): INickPresenter
}